/* 
 * Copyright (C) 2008 anphoralhrod.blogspot.com
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the Free
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 * 
 * MainPanel.java
 *
 * Created on 1 de julio de 2008, 22:51
 */

package betcalc;

/**
 *
 * @author  fran
 */
public class MainPanel extends javax.swing.JPanel {
    
    /** Creates new form MainPanel */
    public MainPanel() {
        initComponents();
    }
   
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        mainTabbedPane = new javax.swing.JTabbedPane();
        bBPanel1 = new betcalc.BBPanel();
        bLPanel1 = new betcalc.BLPanel();
        lBPanel1 = new betcalc.LBPanel();
        controlPanel = new javax.swing.JPanel();
        stepCheckBox = new javax.swing.JCheckBox();
        aboutPanel = new javax.swing.JPanel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jTextArea1 = new javax.swing.JTextArea();
        jLinkLabel2 = new SimpleControl.SimpleLinkLabel();
        jLinkLabel1 = new SimpleControl.SimpleLinkLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jFileTextArea1 = new SimpleControl.SimpleFileTextArea();

        setLayout(new java.awt.BorderLayout());

        java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("betcalc/Bundle"); // NOI18N
        mainTabbedPane.addTab(bundle.getString("backbacklabel"), bBPanel1); // NOI18N
        mainTabbedPane.addTab(bundle.getString("backlaylabel"), bLPanel1); // NOI18N
        mainTabbedPane.addTab("lay-back", lBPanel1);

        controlPanel.setLayout(new java.awt.GridLayout(1, 2));

        stepCheckBox.setSelected(true);
        stepCheckBox.setText(bundle.getString("stepCheckBox")); // NOI18N
        stepCheckBox.setEnabled(false);
        controlPanel.add(stepCheckBox);

        mainTabbedPane.addTab(bundle.getString("controllabel"), controlPanel); // NOI18N

        aboutPanel.setBackground(java.awt.Color.white);
        aboutPanel.setLayout(null);

        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/betcalc/Images/logo.jpg"))); // NOI18N
        jLabel5.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        jLabel5.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
        aboutPanel.add(jLabel5);
        jLabel5.setBounds(10, 10, 120, 100);

        jLabel6.setText(java.util.ResourceBundle.getBundle("betcalc/Bundle").getString("verlabel") + " " + Main.VER + "." + Main.SUBVER + " " + java.util.ResourceBundle.getBundle("betcalc/Bundle").getString("verlabel2") + " ");
        aboutPanel.add(jLabel6);
        jLabel6.setBounds(150, 10, 240, 17);

        jTextArea1.setColumns(36);
        jTextArea1.setEditable(false);
        jTextArea1.setLineWrap(true);
        jTextArea1.setRows(3);
        jTextArea1.setText(java.util.ResourceBundle.getBundle("betcalc/Bundle").getString("aboutManifest") + Main.MYREFER);
        aboutPanel.add(jTextArea1);
        jTextArea1.setBounds(150, 50, 290, 70);

        jLinkLabel2.setText(Main.AUTHOR);
        jLinkLabel2.setLink(Main.AUTHOR);
        aboutPanel.add(jLinkLabel2);
        jLinkLabel2.setBounds(160, 30, 260, 17);

        jLinkLabel1.setText("www.betfair.com");
        jLinkLabel1.setLink("http://www.betfair.com");
        aboutPanel.add(jLinkLabel1);
        jLinkLabel1.setBounds(150, 120, 220, 17);

        jFileTextArea1.setColumns(20);
        jFileTextArea1.setRows(5);
        jFileTextArea1.setUrl(getClass().getResource("/betcalc/GNU License V2.txt"));
        jScrollPane1.setViewportView(jFileTextArea1);

        aboutPanel.add(jScrollPane1);
        jScrollPane1.setBounds(10, 140, 430, 100);

        mainTabbedPane.addTab(bundle.getString("aboutlabel"), aboutPanel); // NOI18N

        add(mainTabbedPane, java.awt.BorderLayout.CENTER);
        mainTabbedPane.getAccessibleContext().setAccessibleName(bundle.getString("backlaylabel")); // NOI18N
    }// </editor-fold>//GEN-END:initComponents
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel aboutPanel;
    private betcalc.BBPanel bBPanel1;
    private betcalc.BLPanel bLPanel1;
    private javax.swing.JPanel controlPanel;
    private SimpleControl.SimpleFileTextArea jFileTextArea1;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private SimpleControl.SimpleLinkLabel jLinkLabel1;
    private SimpleControl.SimpleLinkLabel jLinkLabel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    private betcalc.LBPanel lBPanel1;
    private javax.swing.JTabbedPane mainTabbedPane;
    private javax.swing.JCheckBox stepCheckBox;
    // End of variables declaration//GEN-END:variables
    
}
